<?php
define('OSS', 'http://boxphp.oss-cn-hangzhou.aliyuncs.com/'); //把*替换成对应的Bucket 由于经常用到该链接，所以定义成常量
return array(
//'DB_DSN' => 'mysql://vmtshopUser:IDFe87rkliKDF@localhost:3306/vmtshop#utf8',
	//'DB_DSN' => 'mysqli://root:u@localhost:3306/ailvo_mall#utf8',
	//'DB_DSN2' => 'mysqli://root:usbw@localhost:3306/ailvo#utf8',
	//'DB_DSN' => 'mysqli://root:ailvo.com@wenzouquan190@localhost:3306/ailvo_mall#utf8',
	//'DB_DSN2' => 'mysqli://root:ailvo.com@wenzouquan190@localhost:3306/ailvo#utf8',
	/*********  debug配置  *********/
	'SHOW_PAGE_TRACE' => false, //显示debugTrace
	'DEFAULT_CONTROLLER' => 'Index',
	'URL_PATHINFO_DEPR' => '/',
	'DEFAULT_ACTION' => 'index',
	/*************使用一层级的项目*** //URL支持二级域名或二级目录****/
	'APP_LEVEL_1' => array('BoxApi', 'BoxAdmin', 'BoxPay', 'BoxDemo', 'BoxAddon', 'BoxLogin', 'BoxDoc'), //使用一层级的项目
	'DOMAIN_LEVEL_1' => array('pay' => 'BoxPay', 'superadmin' => 'BoxAdmin', 'api' => 'BoxApi', 'login' => 'BoxLogin'), //使用一层级的二级域名
	/*********  DB配置  *********/
	'DB_DSNS' => array(
		'system' => 'Mysql://root:wenzouquan190@10.66.188.228:1356/boxphp#utf8',
		'edu' => 'Mysql://root:wenzouquan190@10.66.188.228:1356/codeCamp#utf8',
		'eng' => 'Mysql://root:wenzouquan190@10.66.188.228:1356/boxeng#utf8',
		'yz' => 'Mysql://root:wenzouquan190@10.66.188.228:1356/yzpay#utf8',
	),

	/*******如果*DB配没有 读这默认配置***/
	'DB_TYPE' => 'mysql', //数据库类型
	//'DB_HOST' => '127.0.0.1:8066', //服务器地址
	'DB_HOST' => '10.66.188.228:1356',
	'DB_NAME' => 'boxphp', //数据库名
	'DB_USER' => 'root', //用户名
	'DB_PWD' => 'wenzouquan190', //密码

	/*'DB_TYPE' => 'mysql', //数据库类型
		    'DB_HOST' => '127.0.0.1', //服务器地址
		    'DB_NAME' => 'boxphp', //数据库名
		    'DB_USER' => 'root', //用户名
	*/

	/*'DB_NAME' => 'longhuiguan', //数据库名
		    'DB_USER' => 'longhuiguan_user', //用户名
	*/
	'DB_PREFIX' => '', //数据库表前缀
	/****缓存***/
	'FIND_CACHE' => 1, //使用find时，开启缓存
	'autopartition' => '0', //自增主键ID使用数据的system_gennum
	'DATA_CACHE_TIME' => 0, // 数据缓存有效期 0表示永久缓存存
	'DATA_CACHE_PREFIX' => 'BoxPHP_1.0.5', // 缓存前缀
	'LOG_RECORD' => true,
	// 'DATA_CACHE_TYPE' => 'Common\\Org\\Cache\\Driver\\Redis',  // 数据缓存类型,支持:File|Db|Apc|Memcache|Shmop|Sqlite|Xcache|Apachenote|Eaccelerator|Redis
	'DATA_CACHE_TYPE' => 'Memcache',
	'MEMCACHE_HOST'=>'10.66.187.88',
	'MEMCACHE_PORT'=>'9101',
	'LOG_LEVEL' => 'EMERG,ALERT,CRIT,ERR', // 允许记录的日志级别
	'TMPL_EXCEPTION_FILE' => COMMON_PATH . '/Tpl/box_php_exception.tpl',
	'runThreadKey' => "wenxere18974$%@^&rtty", //fscokopen仿异步调用使用密钥 2次md5
	'thinkEncryptKey' => 'wenxere18974$%@^&rtty', //用于加密的密钥
	/****短信通道**/
	'smsDriver' => 'Bluesms',
	/****视频上传接口***/
	'videoDriver' => 'Aodianyun',
	/*****SESSION配置****/
	'SESSION_OPTIONS' => array(
		'type' => 'Common\\Org\\Session\\Driver\\Db', //session采用数据库保存
		'expire' => 3800, //session过期时间，如果不设就是php.ini中设置的默认值
		//'id'=>'h3qpouv1dirn1dil5dbh323hu7',
	),
	/********上传文件设置***/
	'UPLOAD_SITEIMG' => array(
		'driver' => 'Common\\Org\\Upload\\Driver\\Aliyun',
		'driverConfig' => array(
			'AccessKeyId' => 'ZL3Cr4KByc54jA9Y', //AccessKeyId wen
			'AccessKeySecret' => 'mZZdiOzRT1TjGl0K6BzNCKaoCcs3zO', //AccessKeySecret
			'domain' => OSS, //
			'Bucket' => 'boxphp', //Bucket
			'rootPath' => '',
			'Endpoint' => 'http://oss-cn-hangzhou.aliyuncs.com',
			'type' => 'OSS',
		),
	),

	// 'UPLOAD_SITEIMG' => array(
	//     'driver' => 'Common\\Org\\Upload\\Driver\\Aliyun',
	//     'driverConfig' => array(
	//         'AccessKeyId' => 'ZU0GpHvgAHN2S57t',    //AccessKeyId
	//         'AccessKeySecret' => '4nOLeCo3z4CpKZ2vdOddfNBfD45TXN',//AccessKeySecret
	//         'domain' => OSS,        //
	//         'Bucket' => 'kaoshituji',         //Bucket
	//         'rootPath' => '',
	//         'Endpoint' => 'http://oss-cn-shanghai.aliyuncs.com',oss-cn-shanghai.aliyuncs.com
	//         'type' => 'OSS',
	//     ),
	// ),

	'LOGIN_ONE' => '1', //1不支持多个地方登录
	'SESSION_TABLE' => 'system_session', //保存
	'SESSION_AUTO_START' => false,

	'MODULE_ALLOW_LIST' => array('BoxEdu', 'BoxEng'),
	'DEFAULT_MODULE' => 'BoxDoc',
	'TMPL_L_DELIM' => '<{',
	'TMPL_R_DELIM' => '}>',
	'URL_MODEL' => 2,
	'URL_HTML_SUFFIX' => '',
	'CONTROLLER_LEVEL' => 2,
	'URL_CASE_INSENSITIVE' => false,
	'SESSION_AUTO_START' => false,
	'APP_SUB_DOMAIN_DEPLOY' => 1,
	'DB_FIELDS_CACHE' => true, //字段缓存
	'APP_SUB_DOMAIN_RULES' => array(
		'www' => array('BoxEdu/Home'),
		'test' => array('BoxEdu/Home'),
		'superadmin.edu' => array('BoxEdu/Admin'),
		'superadmin.eng' => array('BoxEng/Admin'),
		'eng' => array('BoxEng/Wap'),
		'doc' => array('BoxDoc/Home'),
		'*.snsp' => array('BoxTest/Home', 'storeDomain=*'),
		'*.snsm' => array('BoxTest/Wap', 'storeDomain=*'),
		'designer' => array('Designer/Wap'),
		'mall' => array('BoxMall/Home'),
		'superadmin.mall' => array('BoxMall/Admin'),
		'yzpay' => array('YzPay/Home'),
		'superadmin.yzpay' => array('YzPay/Admin'),

	),
	'AUTOLOAD_NAMESPACE' => array(
		'Common' => COMMON_PATH,
		'Addons' => ADDONS_PATH,
		'Apps' => APP_PATH,
	),
	'TMPL_PARSE_STRING' => array(
		'__PUBLIC__' => '/Public',
		'__Js__' => PUBLIC_JS,
		'__AdminCss__' => PUBLIC_PATH . '/BoxAmin/Ace/css',
		'__AdminImages__' => PUBLIC_PATH . '/BoxAmin/Ace/images',
		'__AdminJs__' => PUBLIC_PATH . '/BoxAmin/Ace/js',
		'__Img__' => ImgDomain,
		'__Images__' => PUBLIC_IMG,
		'__Css__' => PUBLIC_CSS,
		'__ResCache__' => ResCache,
		'__Controllers__' => PUBLIC_Controllers,

	),
	'ADMIN_VIEW_PATH' => './Apps/BoxAdmin/View/Ace/',
);

?>
